package com.easybuilder.common.base.entity;

import lombok.Data;

import java.util.List;

/**
 * 分页查询对象
 *
 * @author 张兴帅
 * @projectName easy-builder
 * @packageNmae com.easybuilder.common.base.entity
 * @fileNmae PageWrapper
 * @date 2023-5-16
 * @copyright 华能信息技术有限公司
 * @since 0.0.1
 */
@Data
public class PageResultWrapper<T> {
    private Integer pageNum;
    private Integer pageSize;
    private Long total;
    private List<T> data;

    public PageResultWrapper(Integer pageNum, Integer pageSize, Long total, List<T> data) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.data = data;
    }
}